package com.spzx.user.api;


import com.spzx.common.core.constant.SecurityConstants;
import com.spzx.common.core.constant.ServiceNameConstants;
import com.spzx.common.core.domain.R;
import com.spzx.user.api.domain.UserBrowseHistory;
import com.spzx.user.api.factory.RemoteUserBrowseHistoryFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(
        contextId = "remoteUserBrowseHistoryService",
        value = ServiceNameConstants.USER_SERVICE,
        fallbackFactory = RemoteUserBrowseHistoryFallbackFactory.class
)
public interface RemoteUserBrowseHistoryService {
@PostMapping("/userBrowseHistory/saveUserBrowseHistory")
R<?> saveUserBrowseHistory(
        @RequestBody UserBrowseHistory userBrowseHistory,
        @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
